﻿using UnityEngine;

/// <summary>
/// Title screen script
/// </summary>
public class MenuScript : MonoBehaviour
{
	public GUIStyle startButtonStyle;
	
	void OnGUI()
	{
		
		// Draw a button to start the game
		if (
			GUI.Button(
				new Rect((1f-5f/6f)*Screen.width,
				(1f-5f/6f)*Screen.height,
				4f*Screen.width / 6f, 4f*Screen.height / 6f),
			"\n\n\nJouer !", startButtonStyle))
			Application.LoadLevel("Plateau");
	}
}
